<template>
	<view class="row d-flex j-center m-2" v-if="resdata">
		<view v-for="(item,i) in resdata" :key="i" class="span-4 d-flex flex-column j-center a-center py-1" @tap="iconChange(item)">
			<image :src="item.iconUrl" style="width: 60rpx;height: 60rpx;" mode="widthFix"></image>
			<text class="font-sm text-muted">{{item.title}}</text>
		</view>
		
	</view>
</template>

<script>
	export default{
		props:{
			resdata:{
				type:Array,
				default:()=>[]
			}
		},
		methods:{
			iconChange(item){
				console.log('我点击了')
			}
		}
	}
</script>

<style>
</style>
